<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>用户注册</title>
    <%@include file="template/resources.jsp" %>
    <link rel="stylesheet" href="<c:url value="/css/login.css"/> ">
    <style>
        .model::before {
            content: "注册";
        }

        .model form input[type="submit"] {
            margin: 10px 19px;
        }
    </style>
</head>
<body>
<%@include file="template/notice.jsp" %>
<div class="login web-font">
    <div class="img-login">
        <img src="<c:url value="/img/register.png"/> ">
    </div>
    <div class="model">
        <form action="<c:url value="/admin?action=singup"/> " method="post">
            <div class="box">
                <input type="text" required="required" name="name">
                <div class="underline"></div>
                <label class="info">用户名</label>
            </div>
            <div class="box">
                <label><input type="radio" checked="checked" value="0" name="sex">男</label>
                <label><input type="radio" value="1" name="sex">女</label>
            </div>
            <div class="box">
                <input type="password" required="required" name="passwd">
                <i class="fa fa-eye-slash" id="no-see"></i>
                <div class="underline"></div>
                <label class="info">密码</label>
            </div>
            <div class="box">
                <input type="text" required="required" name="phone">
                <div class="underline"></div>
                <label class="info">手机号</label>
            </div>
            <div class="box">
                <input type="text" required="required" name="email">
                <div class="underline"></div>
                <label class="info">邮箱号</label>
            </div>
            <div class="box">
                <input type="text" required="required" name="verification">
                <div class="underline"></div>
                <label class="info">验证码</label>
                <img src="<c:url value="/verification"/> " onclick="upVerification('<%=request.getContextPath()%>')"
                     id="codeImg">
            </div>
            <input type="submit" value="注册">
            <div>
                <a href="<c:url value="/sing"/> ">已有帐号，去登录</a>
            </div>
        </form>
    </div>
</div>
<script type="text/javascript" src="<c:url value="/js/login.js"/> "></script>
</body>
</html>
